Repository navigation
Skip tests on devices that don't support a USM type - #2418
Merged
Merged
Conversation
ndgrigorian
requested review from
antonwolfy and
vlad-perevezentsev
as code owners
November 4, 2026 19:41
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Collaborator
ndgrigorian
force-pushed
the
fix-tests-for-unsupported-usm-types
branch
from
November 5, 2026 17:31
ed110d4 to
b5538c5
Compare
antonwolfy
previously approved these changes
Dec 2, 2026
antonwolfy
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, thanks for consolidating the helper. Two minor nits inline, none of them blocking.
vlad-perevezentsev
left a comment
Collaborator
There was a problem hiding this comment.
LGTM
Thank you @ndgrigorian
Just a small nit below:
vlad-perevezentsev
self-requested a review
December 4, 2026 16:40
vlad-perevezentsev
previously approved these changes
Dec 4, 2026
Move the USM aspect check from the memset and fill tests into dpctl/tests/helper and use it wherever tests allocate shared, host, or device USM.
Cover the pickling tests and test_queue_memops, which master changed to use shared USM.
skip_if_usm_unsupported resolves the aspect via issubclass, accepts filter strings, and raises TypeError on unsupported arguments. test_context_multi_device checks both USM kinds on both sub-devices before allocating.
ndgrigorian
dismissed stale reviews from vlad-perevezentsev and antonwolfy
via
December 4, 2026 17:31
8fc7d45
ndgrigorian
force-pushed
the
fix-tests-for-unsupported-usm-types
branch
from
December 4, 2026 17:31
b5538c5 to
8fc7d45
Compare
vlad-perevezentsev
approved these changes
Dec 4, 2026
vlad-perevezentsev
left a comment
Collaborator
There was a problem hiding this comment.
No more comments from my side
LGTM
Thank you @ndgrigorian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes tests that allocate shared, host, or device USM so that they skip on devices without the corresponding
usm_*_allocationsaspectThe check already used by the
memsetandfilltests is moved intodpctl/tests/helperasskip_if_usm_unsupported